//删除教育经历
function deleteEdu(element,x) {
    layer.confirm('是否删除此条记录', {title:'提示'}, function(index){
        var data = {
            id: x
        }
        $.ajax({
            url: "http://localhost:3000/delete/eduDelete ",
            type: 'post',
            data: data,
            dataType: 'json',
            success: function (result) {
               console.log(result);
               if(result.code==1){
                   layer.close(index);
                   $(element).parents('.layui-colla-item').remove();
               }
            },
            error: function (msg) {
    
            }
        })
    });
}
//删除工作经历
function deletePra(element,x) {
    layer.confirm('是否删除此条记录', {title:'提示'}, function(index){
        var data = {
            id: x
        }
        $.ajax({
            url: "http://localhost:3000/delete/praDelete ",
            type: 'post',
            data: data,
            dataType: 'json',
            success: function (result) {
               console.log(result);
               if(result.code==1){
                   layer.close(index);
                   $(element).parents('.layui-colla-item').remove();
               }
            },
            error: function (msg) {
    
            }
        })
    });
}
//删除项目经历
function deletePro(element,x) {
    layer.confirm('是否删除此条记录', {title:'提示'}, function(index){
        var data = {
            id: x
        }
        $.ajax({
            url: "http://localhost:3000/delete/proDelete ",
            type: 'post',
            data: data,
            dataType: 'json',
            success: function (result) {
               console.log(result);
               if(result.code==1){
                   layer.close(index);
                   $(element).parents('.layui-colla-item').remove();
               }
            },
            error: function (msg) {
    
            }
        })
    });
}
//删除获奖记录
function deleteHon(element,x){
    layer.confirm('是否删除此条记录', {title:'提示'}, function(index){
        var data = {
            id: x
        }
        $.ajax({
            url: "http://localhost:3000/delete/honorDelete ",
            type: 'post',
            data: data,
            dataType: 'json',
            success: function (result) {
               console.log(result);
               if(result.code==1){
                   layer.close(index);
                   $(element).parents('.layui-colla-item').remove();
               }
            },
            error: function (msg) {
    
            }
        })
    });
}